package org.manusoft.refill.domain;
import java.io.Serializable;
import java.sql.Time;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="t_refilling_details_rf")
public class TRefillingDetailsRf implements Serializable {
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name="REFILL_ID")
	private int refillId;

	@Column(name="IN_TIME")
	private Date inTime;

	@Column(name="OUT_TIME")
	private Date outTime;

	private int status;

	@Column(name="ESTIMATED_WAIT_TIME")
	private Time estimatedWaitTime;

	@Column(name="IS_PRIORITY")
	private byte isPriority;

	@Column(name="FUEL_TYPE")
	private String fuelType;

	@ManyToOne
	@JoinColumn(name="VEHICLE_ID")
	private TVehicleDetailsRf vehicleId;

	@ManyToOne
	@JoinColumn(name="DRIVER_ID")
	private TDriverDetailsRf driverId;

	@ManyToOne
	@JoinColumn(name="TRANSPORT_ID")
	private TTransportDetailsRf transportId;

	private static final long serialVersionUID = 1L;

	public TRefillingDetailsRf() {
		super();
	}

	public int getRefillId() {
		return this.refillId;
	}

	public void setRefillId(int refillId) {
		this.refillId = refillId;
	}

	public Date getInTime() {
		return this.inTime;
	}

	public void setInTime(Date inTime) {
		this.inTime = inTime;
	}

	public Date getOutTime() {
		return this.outTime;
	}

	public void setOutTime(Date outTime) {
		this.outTime = outTime;
	}

	public int getStatus() {
		return this.status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Time getEstimatedWaitTime() {
		return this.estimatedWaitTime;
	}

	public void setEstimatedWaitTime(Time estimatedWaitTime) {
		this.estimatedWaitTime = estimatedWaitTime;
	}

	public byte getIsPriority() {
		return this.isPriority;
	}

	public void setIsPriority(byte isPriority) {
		this.isPriority = isPriority;
	}

	public String getFuelType() {
		return this.fuelType;
	}

	public void setFuelType(String fuelType) {
		this.fuelType = fuelType;
	}

	public TVehicleDetailsRf getVehicleId() {
		return this.vehicleId;
	}

	public void setVehicleId(TVehicleDetailsRf vehicleId) {
		this.vehicleId = vehicleId;
	}

	public TDriverDetailsRf getDriverId() {
		return this.driverId;
	}

	public void setDriverId(TDriverDetailsRf driverId) {
		this.driverId = driverId;
	}

	public TTransportDetailsRf getTransportId() {
		return this.transportId;
	}

	public void setTransportId(TTransportDetailsRf transportId) {
		this.transportId = transportId;
	}

}
